<template>
    <div id="tabbar">
        <van-tabbar route>
            <van-tabbar-item v-for="(item, index) in tabbarList" :key="index" :icon="item.meta.icon" replace :to="item.path" @click="barClick">{{item.meta.title}}</van-tabbar-item>
        </van-tabbar>
    </div>
</template>
<script>
import { tabbarRoutes } from '../router/routers'
console.log(tabbarRoutes);
export default {
    name: 'tabbar',
    data () {
        return {
            active: 0,
            tabbarList: tabbarRoutes
        };
    },
    methods: {
      barClick() {
        this.$notify({ type: 'success', message: `当前设备的唯一标识为：\n ${this.$visitorId}`, duration: 5000 });
      }
    }
};
</script>
